.main-content {
	margin-left: 240px;
	margin-right: 240px;
	padding: 20px;
	margin: 0px auto;
}


/* 聊天界面样式 */
.chat-container {
    display: flex;
    height: 80vh;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.contacts-panel {
    width: 30%;
    border-right: 1px solid #eee;
    overflow-y: auto;
}

.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
}

.message {
    display: flex;
    margin-bottom: 15px;
}

.message.sent {
    justify-content: flex-end;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    background: #f0f2f5;
}

.message.sent .message-content {
    background: #0084ff;
    color: white;
}

.message-text {
    word-wrap: break-word;
}

.message-time {
    font-size: 0.75rem;
    color: #999;
    text-align: right;
    margin-top: 5px;
}

/* .received{
	color:#ccc;
} */

.online-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 5px;
}

.online-status.online {
    background-color: #31a24c;
}

.online-status.offline {
    background-color: #ccc;
}